<template>
	<el-dialog
	  	title="提示"
	  	:visible.sync="$store.state.alert"
	  	size="tiny">
	  	<span>{{msg}}</span>
	  	<span slot="footer" class="dialog-footer">
	    	<el-button type="primary" @click="close">确 定</el-button>
	  	</span>
	</el-dialog>
</template>

<script type="text/javascript">
	export default {
		data () {
			return {

			}
		},
		methods: {
			close () {
				this.$store.state.alert = false;
			}
		},
		computed: {
			msg () {
				return this.$store.state.msg
			}
		}
	}
</script>

